<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="inc/ietm::header">
</head>
<body onload="changeMain('ietm-home')">
	<!--头部开始-->
	<div class="header">
		<div class="headerl">
			<ul>
				<li><img class="headerl-img" th:src="@{/ietm/images/IETM_logo.png}" /></li>
				<li class="sidebar-toggle toggle-hidden" title="隐藏左侧菜单">
		                <span class="icon-bar"></span>
		                <span class="icon-bar"></span>
		                <span class="icon-bar"></span>
				</li>
				<li class="sidebar-toggle toggle-show" title="隐藏左侧菜单" style="display:none">
	                <span class="icon-bar"></span>
	                <span class="icon-bar"></span>
	                <span class="icon-bar"></span>
				</li>
			 </ul>
		</div>
		<div class="headerr">
			<ul>
				<li id="time" style='line-height:50px'></li>
				<!-- <li class="user" th:text="${session.user.userName}" id="userName" style='line-height:50px'></li> -->
				<li class="back" onclick="ietmGoBack()" style='line-height:50px'>返回</li>
				<!-- <a target="helpframe" th:href="@{/help.html}"><li class="help" style='line-height:50px'>帮助</li></a> -->
				<li class="help" onclick="changeMain('ietmhelp')" style='line-height:50px'>帮助</li>
				<li class="close" onclick="closed()" style='line-height:50px'>退出
				<input type="hidden" id="treeNo" name="treeNo" th:value="${treeNo}"/>
				<input type="hidden" id="projectIdTag" name="projectIdTag" th:value="${projectIdTag}"/></li>
			</ul>
		</div>
	</div>
	<!--头部结束-->
	<!--主体开始-->
	<div class="main">
          <div id="frameReft"></div>
	</div>
	<!--主体结束-->

	<!--底部导航-->
	<div class="foot-nav">
	   <div class="foot-nav-b">
	   	  <ul id="per">
	   	  	<li><a th:href="@{/index}"><img th:src="@{/ietm/images/btn_nav_01.png}" id='btn_nav_01'/></a></li>
	   	  	<li onclick="changeMain('project')"  ><img th:src="@{/ietm/images/btn_nav_09.png}" id='btn_nav_09'/></li>
	   	  	<li onclick="changeMain('fitness')" ><img th:src="@{/ietm/images/btn_nav_13.png}" id='btn_nav_13'/></li>
	   	  	<li onclick="changeMain('maintplan')" ><img th:src="@{/ietm/images/btn_nav_19.png}" id='btn_nav_19'/></li>
	   	  	<li onclick="changeMain('multimedia')" ><img th:src="@{/ietm/images/btn_nav_03.png}" id='btn_nav_03'/></li>
	   	  	<li onclick="changeMain('user-help')" ><img th:src="@{/ietm/images/btn_nav_02.png}" id='btn_nav_02'/></li>
	   	  	<li onclick="changeMain('annotations')" ><img th:src="@{/ietm/images/btn_nav_10.png}" id='btn_nav_10'/></li>
	   	  	<li onclick="changeMain('ietm-log')" ><img th:src="@{/ietm/images/btn_nav_12.png}" id='btn_nav_12'/></li>
	   	  
	   	  	
	   	  </ul>
	   </div>
	</div>
<script type="text/javascript" th:src="@{/ietm/js/ietm.js}"></script>
<script th:inline="javascript">  
/*<![CDATA[*/  

    function closed(){
		$.Zebra_Dialog('<div class="prompt"><a class="closed-color" href="javascript:void(0)"  onclick="runTime(\'taskkillIE\')"  >退出系统</a><a class="closed-color" href="javascript:void(0)" onclick="runTime(\'shutdown\')" >关机</a></div>', {
            'title':'提示',
            'buttons':[{caption:'取消'}]
        });
	}
    
    function logout(){
    	window.location.href="/logout.html"; 
	}
/*]]>*/  
</script>
<script th:inline="javascript">
	/*<![CDATA[*/
	function runTime(par) {
		exitAddTag();
		 $.ajax({
		     type: "post",
		     dataType: "json",
		     url:"/Tool/"+par ,
		     success: function (data, status) {
		    	 window.location.href="/logout.html";
		     },
		     error: function (data) {
		
		     }
		 }); 
	}

	/*]]>*/
</script>
</body>
</html>
